package com.shenzhen.group.niuniu.result;

import com.shenzhen.group.common.card.Card;
import com.shenzhen.group.common.entity.HandCardGroupBase;
import com.shenzhen.group.common.result.CardResult;
import lombok.Data;

/**
 * @description: 牌的结果集
 * @author tooStronger
 * @date 2021/9/20
 */
@Data
public class NiuniuCardResult extends CardResult implements Comparable<NiuniuCardResult> {

    /*** 牛几 */
    private Integer niu;
    /*** 倍率 */
    private Integer magnification;
    /*** 最大的牌 */
    private Card maxCard;
    /*** 手牌 */
    private HandCardGroupBase handCardGroupBase;


    @Override
    public int compareTo(NiuniuCardResult o) {
        if (this.niu.compareTo(o.niu) == 0) {
            return this.maxCard.compareTo(o.maxCard);
        }
        return this.niu.compareTo(o.niu);
    }
}
